home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
1259
/
natural.cf_
/
natural.cf
Wrap
Text File
|
1996-03-12
|
4KB
|
214 lines
; -------------------------------------------------------------------------
; ----------- EasyCODE(SPX) - Configuration for NATURAL -------------------
; -------------------------------------------------------------------------
[ParseOptions]
Parser=easy-nat.dll
[GenOptions]
InitialIndent=0
CompressBlanks=no
GenFileExt=NAT
MaxIndent=-1
MaxLineLength=-1
[Settings]
SourceFileFormat=OEM
[AvailableConstructs]
Statement=yes
If=yes
Switch=yes
Case=yes
For=yes
While=yes
Repeat=yes
Loop=yes
Exit=yes
Procedure=yes
Call=yes
Function=no
Block=yes
Frame=yes
Condition=yes
And=yes
Or=yes
Not=yes
[InsertMenuStrings]
;Statement=
;If=
Switch="DECIDE FOR FIRST &CONDITION"
;When=
Case="&DECIDE ON"
;Of=
;For=
;While=
;Repeat=
;Loop=
;Exit=
Procedure="DEFINE &SUBROUTINE"
Call=&PERFORM
;Function=
;Block=
;Frame=
;Condition=
;And=
;Or=
;Not=
[EncloseMenuStrings]
;If=
;Then=
;Else=
Switch="DECIDE FOR FIRST &CONDITION"
;When=
WhenNone="W&HEN NONE"
Case="&DECIDE ON"
;Of=
Otherwise="&NONE VALUES"
;For=
;While=
;Repeat=
;Loop=
Procedure="DEFINE &SUBROUTINE"
;Function=
;Block=
;Frame=
;Condition=
;And=
;Or=
;Not=
[KeywordStrings]
If=IF
Then=THEN
Else=ELSE
Switch="DECIDE FOR FIRST CONDITION"
;FirstWhen=
When=WHEN
WhenNone="WHEN NONE"
Case="DECIDE ON"
;FirstOf=
Of=OF
Otherwise="NONE VALUES"
For=FOR
While=WHILE
Repeat=REPEAT
Loop=LOOP
Procedure="DEFINE SUBROUTINE"
;Function=
;Block=
And=AND
Or=OR
Not=NOT
[MetaStrings]
;SegmentHeader=
;Statement=
;Condition=
;Expression=
;Value=
;ForStatement=
;ProcedureHeader=
;ProcedureCall=
;FunctionHeader=
;BlockComment=
;FrameHeader=
;FrameFooter=
[GenStrings]
Statement=''
EndStatement='\N'
If='\NIF \3+'
ThenBody='\3-\NTHEN\n\3+'
ElseBody='\3-\NELSE\n\3+'
EmptyElseBody=''
EndIf='\N\3-END-IF\n'
; Warning!
; The GenStrings for the CASE construct have been modified
; in an incompatible way, because the parser places the keywords
; VALUE, ANY VALUE, and ALL VALUE into the OF branches before the values.
; Therefore the automatic generation of the keyword VALUE in FirstOf
; and FurtherOf has been deleted. Also the templates ALLVALUE.SPX and
; ANYVALUE.SPX have been deleted. The keyword VALUE must be entered by
; the user before the value of the OF branch.
Case='\NDECIDE ON \10+'
FirstOf='\N\8-'
FurtherOf='\N\2-'
OfBody='\N\2+'
OtherwiseBody='\N\2-NONE VALUES\2+\n'
EmptyOtherwiseBody='\N\2-NONE VALUES IGNORE\2+\n'
EndCase='\N\4-END-DECIDE\n'
Switch='\NDECIDE FOR FIRST CONDITION'
FirstWhen='\2+\nWHEN \5+'
FurtherWhen='\N\3-WHEN \5+'
WhenBody='\N\2-'
WhenNoneBody='\N\3-WHEN NONE \3+\n'
EmptyWhenNoneBody='\N\3-WHEN NONE IGNORE\3+\n'
EndSwitch='\N\5-END-DECIDE\n'
For='\NFOR \4+'
ForBody='\N\2-'
EndFor='\N\2-END-FOR\n'
While='\NREPEAT WHILE \13+'
WhileBody='\N\13-\2+'
EndWhile='\N\2-END-REPEAT\n'
Repeat='\NREPEAT\n\2+'
Until='\NUNTIL \6+'
EndRepeat='\N\8-END-REPEAT\n'
Loop='\NREPEAT\n\2+'
EndLoop='\2-\NEND-REPEAT\n'
Exit='\NIF \3+'
EndExit='\N\1-ESCAPE BOTTOM\n\2-END-IF\n'
Procedure='\NDEFINE SUBROUTINE \18+'
ProcedureBody='\N\18-\2+'
EndProcedure='\N\2-END-SUBROUTINE\n\n'
Call='\NPERFORM \8+'
EndCall='\N\8-'
; Warning!
; The GenStrings Function and FunctionBody are not provided,
; because the Function construct is not supported by NATURAL.
; Please use the Procedure construct instead!
; Due to the GenString EndFunction you will find the following hint
; in the generated source program:
EndFunction='\s\0:\n\nWarning! Function construct not allowed.\n\n\r'
Block='\N/* \"\n\i/* "'
BlockBody='\n\2+'
EndBlock='\N\2-'
Frame='\N'
FrameBody='\N\2+'
EndFrameBody='\N\2-'
EndFrame='\N'
BeginAnd=' (\5+'
And=')\n\5-AND (\5+'
EndAnd=')\5-'
BeginOr=' (\5+'
Or=')\n\5-OR (\5+'
EndOr=')\5-'
BeginNot='NOT (\5+'
EndNot=')\5-'
Condition=''
EndCondition=''
Segment='\N/* \"\n\i/* "'
SegmentBody='\N\2+'
EndSegment='\N\2-'
TopSegment='/* Generated by \%PNAME% V\%PVER% at \%TIME%\n/* with \%CFG%\n\n/* \"\n/* "'
TopSegmentBody='\n\n'
EndTopSegment='\N'